-
Notifications
You must be signed in to change notification settings - Fork 142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: SingleComboBox の Story を見直し #5143
base: master
Are you sure you want to change the base?
Conversation
await userEvent.click(helpMessage[0]) // カーソルの点滅によるVRTのフレーキーを避けるためにフォーカスを移動する | ||
} | ||
|
||
VRT.play = playSingle |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pict以外にプルダウンの展開のためplayfunctionは残しています
commit: |
calendarのVRTが本日の日付の◯でflakyになっているのですが、以下の2択の修正で悩んでいます....
デザインのチェック的には2が良さそうなものの、機能として今日の日付を渡すことがないと思うので、1でもいいかも、、、で甲乙つけ難く。 |
あ、しまった...。日付のことすっかり考慮してなかったです…。 1がベターそうかなと思いましたがシュッとできそうでしょうか…? |
...ages/smarthr-ui/src/components/ComboBox/SingleComboBox/stories/VRTSingleComboBox.stories.tsx
Outdated
Show resolved
Hide resolved
...ages/smarthr-ui/src/components/ComboBox/SingleComboBox/stories/VRTSingleComboBox.stories.tsx
Outdated
Show resolved
Hide resolved
packages/smarthr-ui/src/components/ComboBox/SingleComboBox/stories/SingleComboBox.stories.tsx
Outdated
Show resolved
Hide resolved
packages/smarthr-ui/src/components/ComboBox/SingleComboBox/stories/SingleComboBox.stories.tsx
Show resolved
Hide resolved
packages/smarthr-ui/src/components/ComboBox/SingleComboBox/stories/SingleComboBox.stories.tsx
Outdated
Show resolved
Hide resolved
packages/smarthr-ui/src/components/ComboBox/SingleComboBox/stories/SingleComboBox.stories.tsx
Outdated
Show resolved
Hide resolved
packages/smarthr-ui/src/components/ComboBox/SingleComboBox/stories/SingleComboBox.stories.tsx
Outdated
Show resolved
Hide resolved
...ages/smarthr-ui/src/components/ComboBox/SingleComboBox/stories/VRTSingleComboBox.stories.tsx
Outdated
Show resolved
Hide resolved
...ages/smarthr-ui/src/components/ComboBox/SingleComboBox/stories/VRTSingleComboBox.stories.tsx
Outdated
Show resolved
Hide resolved
items: { control: 'object' }, | ||
selectedItem: { | ||
control: { type: 'select' }, | ||
options: Object.keys(defaultItems), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nits]
細かすぎますが、Controls 上でいずれかのアイテムを選択状態にしちゃうと、それをクリアする手段がなくなってちょっとだけ困りました (単にブラウザリロードしてもURLに状態が保持されちゃうので…。)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@s-sasaki-0529 消えた方が使い方がわかっていいかな〜と思ったので、消えたり選択できるようにしてしまいました!
20bc809
excludeStories: ['defaultItems', 'prefixes'], | ||
} as Meta<typeof SingleComboBox> | ||
|
||
export const Playground: StoryObj<typeof SingleComboBox> = {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nits]
dropdownHelpMessage を Controls で編集しようとするとクラッシュしました。
ReactNode を取るコンポーネント全般で起こる問題なので Storybook が悪いのではって気はしますが。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@s-sasaki-0529 クラッシュするのは使いづらそうなので選択式に直しました!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍️ 細かいコメントは入れましたが、必要十分にカバーできている感じがしました!
関連URL
https://smarthr.atlassian.net/browse/SHRUI-1127
概要
変更内容
確認方法
Storybook や Chromatic で確認してください。